package com.cug.smartranch.animal.admin.dto.req;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 动物记录分页查询接口请求参数实体
 *
 * 三个参数：动物名称、年龄、性别
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "动物记录分页查询接口请求参数实体")
public class AnimalPageQueryReqDTO {
    /**
     * 动物名称
     */
    @Schema(description = "动物名称，支持模糊查询",
            example = "熊猫1号",
            required = false)
    private String animalName;

    /**
     * 动物最小年龄
     */
    @Schema(description = "动物最小年龄",
            example = "1",
            required = false)
    private Integer minAge;

    /**
     * 动物最大年龄
     */
    @Schema(description = "动物最大年龄",
            example = "50",
            required = false)
    private Integer maxAge;

    @Schema(description = "动物性别 0：雄性 1：雌性",
            example = "0",
            required = false)
    /**
     * 动物性别
     */
    private Integer gender;

    @Schema(description = "pageNo 页码",
            example = "1",
            required = true)
    /**
     * 当前页码
     */
    private Integer pageNo;

    @Schema(description = "pageSize 每一页展示几条数据",
            example = "7",
            required = true)
    /**
     * 一页数量
     */
    private Integer pageSize;
}
